package service.functions;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: dna
 * Date: 21.04.13
 * Time: 00:11
 */
public class Function {

    private String name;
    private ArrayList<String> params;
    private boolean enabled;

    public Function(String name) {
        this.name = name;
        this.params = new ArrayList<String>();
        this.enabled = true;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArrayList<String> getParams() {
        return params;
    }

    public void addParams(String param) {
        params.add(param);
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }
}
